﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yun.Interface;
using Yun.Open.Response;

namespace Yun.Open.Request
{
    /// <summary>
    /// 获取系统应用设置列表
    /// yun.open.apply.settings.list
    /// </summary>
    public class GetApplySettingsListRequest : ITopRequest<GetApplySettingsListResponse>
    {

        /// <summary>
        /// 页码
        /// </summary>
        public int PageNum { get; set; } = 1; 

        /// <summary>
        /// 页容量
        /// </summary>
        public int PageSize { get; set; } = 1;

        public string GetApiName()
        {
            return "yun.open.apply.settings.list";
        }

        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"pagenum", PageNum},
                {"pagesize", PageSize} 
            };
            return parameters;
        }

        public void Validate()
        {
        }
    }
}
